package com.bjpowernode.rbac.service;

import com.bjpowernode.rbac.entity.Role;
import com.bjpowernode.rbac.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author jy
 * @version 1.0
 * @date 2022/2/8 20:51
 */
public interface RoleService {

    List<Role> selectAllRoles();

    PageInfo<Role> selectDepartmentByCondition(QueryObject queryObject);

    void saveOrUpdate(Role role,Long[] permissionIds);

    void delete(Long id);

    Role selectRoleById(Long id);
}
